package com.jcfk.system.domain.po;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.Version;
import com.jcfk.common.business.entity.BaseEntity;
import lombok.Data;

/**
 * 用户
 */
@Data
@TableName("sys_user")
public class SysUser extends BaseEntity {
    /**
     * 版本号
     */
    @Version
    @TableField(value = "version")
    private Long version;

    /**
     * 用户姓
     */
    @TableField(value = "first_name")
    private String firstName = "";

    /**
     * 用户名
     */
    @TableField(value = "last_name")
    private String lastName = "";

    /**
     * 员工号
     */
    @TableField(value = "emp_no")
    private String empNo;

    /**
     * 所在机构
     */
    @TableField(value = "organization_id")
    private String organizationId;

    /**
     * 照片地址
     */
    @TableField(value = "img_url")
    private String imgUrl = "";

    /**
     * 登陆名
     */
    @TableField(value = "login_name")
    private String loginName = "";

    /**
     * 登陆密码
     */
    @TableField(value = "password")
    private String password = "";

    /**
     * 性别（2 - 女， 1 - 男）
     */
    @TableField(value = "sex_type")
    private String sexType;

    /**
     * 职称
     */
    @TableField(value = "post")
    private String post;

    /**
     * 学历
     */
    @TableField(value = "education")
    private String education;

    /**
     * 手机号
     */
    @TableField(value = "mobile")
    private String mobile = "";

    /**
     * 座机号
     */
    @TableField(value = "phone")
    private String phone = "";

    /**
     * 电子邮件
     */
    @TableField(value = "email")
    private String email = "";

    /**
     * 是否以根用户权限登录
     */
    @TableField(value = "as_root")
    private Integer asRoot = 0;

    /**
     * 删除标志
     */
    @TableField(value = "deleted")
    private Integer deleted;

    /**
     * 启用标志
     */
    @TableField(value = "enabled")
    private Integer enabled;


    @TableField(value = "remarks")
    private String remarks = "";

    /**
     * 用户类型
     */
    @TableField(value = "user_type")
    private String userType;

    /**
     *
     */
    @TableField(value = "department_id")
    private String departmentId;
}
